export class Resource {
  public id: string | null = null;
  public code: number | null = null;
  public resourceAttribute: number | ResourceAttribute | 0 | 1 | null = 0;
  public name: string | null = null;
  public remark: number | null = null;
  public belongDepartmentId: string | null = null;
  public belongDepartmentName: string | null = null;
  public basAlwaysProcessResourceDefinitionItemList: Array<ResourceItem> = [];
}

export class ResourceItem {
  public id: string | null = null;
  public associationId: string | null = null;
  public associationCode: string | null = null;
  public associationName: string | null = null;
  public alwaysProcessResourceDefinitionId: string | null = null;
  public priority: number | ResourceAttribute | 0 | 1 | null = null;
  public processManagementId: number | null = null;
  public processManagementName: number | null = null;
  public specialPurpose: number | null = null;
  public useDepartmentId: string | null = null;
  public useDepartmentName: string | null = null;
  public workHours: number | null = null;
  public remark: number | null = null;
}

export enum ResourceAttribute {
  People = 0,
  Machine = 1
}

export const ResourceAttributes = ['人力', '设备']
